# coding:utf-8
# @Time : 2021/4/28 19:09
# @File : config.py
"""
    应用程序基础配置
"""
from datetime import timedelta

# 网站域名
HOST_NAME = 'http://localhost:5000'


class ConfigSecure:
    # 数据库配置
    SQLALCHEMY_DATABASE_URI = 'mysql://root:root123456@localhost/fifth_playmate'

    # 关闭数据库追踪模式
    SQLALCHEMY_TRACK_MODIFICATIONS = False

    # 性能测试的阀值
    DATABASE_QUERY_TIMEOUT = 0.5

    # 安全秘钥配置
    SECRET_KEY = 'c3VzYW4gcNTAwmYmZjZmI0N=='

    # cookie过期时间
    REMEMBER_COOKIE_DURATION = timedelta(days=30)